//
//  Types.cpp
//  WiFiMACSim
//
//  Created by Christopher Kemsley on 4/5/12.
//  Copyright (c) 2012 iAppolopolis. All rights reserved.
//

#include "Types.hpp"
#include "Exception.hpp"

SimNamespaceBegin


UInteger const	IDSetCapacity	=	20 ;





IDSet :: IDSet ()
:	mBegin	( new ID [IDSetCapacity] )
,	mEnd	( mBegin )
,	mCount	( 0 )
	{
	
	}
IDSet :: ~IDSet ()
	{
	
	}

void IDSet :: add ( ID const & inID )
	{
	if ( mCount == IDSetCapacity )
		ThrowException ( "IDSet" , "Reached capacity" , __FILE__,__LINE__ ) ;
	mCount ++ ;
	*(mEnd++) = inID ;
	}

IDSetMap :: IDSetMap ()
:	mMap ()
	{
	
	}
IDSetMap :: ~IDSetMap ()
	{
	
	}






SimNamespaceEnd
